package team.first.movieapiv3pro.domain;

import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;
import org.neo4j.ogm.annotation.Id;
import org.neo4j.ogm.annotation.NodeEntity;
import org.neo4j.ogm.annotation.Relationship;

/**
 * @Author: HAPPY
 * @Project_name: project
 * @Package_name: team.first.movieapiv3.domain
 * @Date: 2021/12/22 21:01
 * @Description: 查询评论所用电影
 */
@Setter
@Getter
@ToString
@Accessors(chain = true)
@NodeEntity(label = "Movie")
public class ResponseComment {
    @ApiModelProperty(value = "编号", example = "1")
    @Id
    private Integer id;

    @ApiModelProperty(value = "电影编号", example = "1291545")
    private Integer movieId;

    @ApiModelProperty(value = "用户编号", example = "1")
    private Integer userId;

    @ApiModelProperty(value = "昵称", example = "冷芝士鸭")
    private String nickname;

    @ApiModelProperty(value = "内容", example = "真是一部感人泪下的好电影")
    private String content;

    @ApiModelProperty(value = "用户头像", example = "1.jpg")
    private String avatar;

    @ApiModelProperty(value = "创建时间", example = "2021-11-23 15:26:14")
    private String createdAt;

    @ApiModelProperty(value = "评分", example = "8")
    private Double rating;

    @Relationship(type = "COMMENT", direction = Relationship.INCOMING)
    private UserNode userNode;
}
